package test;

/**
 * Created by Administrator on 2017/4/10 0010.
 */
public class test {

    public static void main(String[] args){
        Circle c1 = new Circle(100,100,10);
        System.out.println(c1.center.x+"------"+c1.center.y);
        System.out.println(c1.radius);
        System.out.println(c1.area());
    }
}

class Point{
    int x,y;
    public Point(int x , int y ){
        this.x = x;
        this.y = y;
    }
}

class Circle{
    Point center = new Point(0,0);
    double radius;
    public Circle(int x, int y, double r){
        center.x = x;
        center.y = y;
        this.radius = r;
    }
    public double area(){
        return Math.PI * radius * radius;
    }
}
